﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Threading.Tasks;

namespace U01_boke
{
    /// <summary>
    /// 线程管理
    /// </summary>
    public class ThreadManager
    {
        /// <summary>
        /// 开启一个线程
        /// </summary>
        public static void TaskStart(Action action)
        {
            Task.Factory.StartNew(() =>
            {
                action.Invoke();
            });
        }
    }
}